export function formatExtrItemInfo(itemAttr: AppAttribute) {
    if (itemAttr != null) {
        let des: string[] = [];
        for (let key in itemAttr) {
            if (key.includes('等级')) {
                des.push(`|cff36fa0f${key} + ${itemAttr[key]}|r`);
            }
            if (key.includes('效果')) {
                if (key.includes('百分比')) {
                    des.push(`|cff36fa0f${key}: ${(itemAttr[key] as number) * 100}%|r`);
                } else {
                    des.push(`|cff36fa0f${key}: ${itemAttr[key]}|r`);
                }
            }
        }
        if (des.length > 0) {
            return '|n|cfffa0ffa特殊效果：|r|n' + des.join('|n');
        }
    }
    return '';
}
